
/**用户信息 */
const userInfo = {
  state: {
    userInfo: null
  },
  mutations: {
    SET_USER_INFO (state, value) {
      state.userInfo = value
    },
  },
  actions: {
    setUserInfo({commit}, value) {//存储用户信息
      commit('SET_USER_INFO', value)
    },
    clearUserInfo({commit}) { //清空用户信息
      commit('SET_USER_INFO', null)
    }
  }
}

export default userInfo
